﻿using Super_Management_Mayhem.Content.Spritesheet;
using Transformable_Engine_v2.Engine.Animation.FrameAnimation;

namespace Super_Management_Mayhem.Content.Animations
{
    public class ToggleOn : FrameAnimationDescription
    {
        public ToggleOn()
        {
            IsLooping = false;
            AddFrame(0, new FrameDescription(ItemSheet.GetSprite(ItemSheet.Switch.Toggle0), 1));
            AddFrame(1, new FrameDescription(ItemSheet.GetSprite(ItemSheet.Switch.Toggle1), 2));
            AddFrame(2, new FrameDescription(ItemSheet.GetSprite(ItemSheet.Switch.Toggle2), 3));
            AddFrame(3, new FrameDescription(ItemSheet.GetSprite(ItemSheet.Switch.On), 0) { IsLastFrame =  true });
            FrameRate = 15;
        }
    }

    public class ToggleOff : FrameAnimationDescription
    {
        public ToggleOff()
        {
            IsLooping = false;
            AddFrame(0, new FrameDescription(ItemSheet.GetSprite(ItemSheet.Switch.Toggle2), 1));
            AddFrame(1, new FrameDescription(ItemSheet.GetSprite(ItemSheet.Switch.Toggle1), 2));
            AddFrame(2, new FrameDescription(ItemSheet.GetSprite(ItemSheet.Switch.Toggle0), 3));
            AddFrame(3, new FrameDescription(ItemSheet.GetSprite(ItemSheet.Switch.Off), 0) { IsLastFrame = true });
            FrameRate = 15;
        }
    }
}